Skip to content

Conversation

@cjosepha
Copy link
Contributor

@cjosepha cjosepha commented Jun 7, 2018

The code in the callback starting at L172 doesn't check if the task is faulted, and assumes it's successful by iterating over the result's list.
So there is a potential null pointer exception at L175.
Also in other parts of the sdk onSuccessTask is used for the same case :

return EventuallyPin.findAllPinned().onSuccessTask(new Continuation<List<EventuallyPin>, Task<Void>>() {

@codecov
Copy link

codecov bot commented Jun 7, 2018

Codecov Report

Merging #843 into master will increase coverage by 0.11%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #843      +/-   ##
============================================
+ Coverage      54.5%   54.61%   +0.11%     
- Complexity     1705     1709       +4     
============================================
  Files           123      123              
  Lines          9785     9785              
  Branches       1372     1372              
============================================
+ Hits           5333     5344      +11     
+ Misses         4023     4013      -10     
+ Partials        429      428       -1
Impacted Files Coverage Δ Complexity Δ
Parse/src/main/java/com/parse/EventuallyPin.java 10.52% <100%> (+10.52%) 2 <0> (+2) ⬆️
...arse/src/main/java/com/parse/ParseCorePlugins.java 62.22% <0%> (+1.66%) 48% <0%> (+1%) ⬆️
Parse/src/main/java/com/parse/ParseHttpClient.java 95.45% <0%> (+3.03%) 16% <0%> (+1%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8b6c1c1...26c80e6. Read the comment docs.

@Jawnnypoo
Copy link
Member

Nice stuff.

@Jawnnypoo Jawnnypoo self-requested a review July 16, 2018 20:12
@Jawnnypoo Jawnnypoo merged commit 2817393 into parse-community:master Jul 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants